//
//  MedicalRecordDetail.swift
//  EyeVisionForPatients
//
//  Created by PMC on 2021/8/19.
//  Copyright © 2021 QDSG. All rights reserved.
//

import HandyJSON

enum MedicalRecordSectionMode {
    case patientInfo, mainState, picture, illnessHistory, pastHistory, specialCheck, diagnose, opinion, sign
    
    var title: String? {
        switch self {
        case .mainState:        return "病情主述"
        case .illnessHistory:   return "现病史"
        case .pastHistory:      return "既往史"
        case .specialCheck:     return "专科检查"
        case .diagnose:         return "诊断"
        case .opinion:          return "处理意见"
        case .sign:             return "医生签名"
        default:                return nil
        }
    }
}

struct MedicalRecordSection {
    var mode: MedicalRecordSectionMode
    var model: MedicalRecordDetail = MedicalRecordDetail()
}

struct MedicalRecordDetail: HandyJSON {
    var id: String?
    var mecId: String?
    var name: String?
    var sex: String?
    var age: String?
    var dept: String?
    var card: String?
    var diagDate: String?
    var medhisZs: String?
    var medhisXbs: String?
    var medhisJws: String?
    var eyeSpecial: String?
    var urlList: [String]?
    var diagNames: String?
    var diagnoseAdvice: String?
    var remark: String?
    var hospitalName: String?
    var sign: String?
}
